<?php
// +----------------------------------------------------------------------
// | 跃飞 [ 将来的你一定会感激现在奋斗的自己 ]
// +----------------------------------------------------------------------
// | Author: 钟贵廷
// +----------------------------------------------------------------------
// | Author URI: https://git.oschina.net/yeafy
// +----------------------------------------------------------------------
// | weChat:gt845272922  qq:845272922
// +----------------------------------------------------------------------

namespace app\yeafy\abstractFactory\demo1;

/**
 * 描述:沙拉酱工厂
 * @author 钟贵廷
 * @WeChat gt845272922
 * @qq 845272922
 * Class SaladPizzaFactory
 * @package app\yeafy\abstractFactory\demo1
 */
class SaladPizzaFactory extends PizzaFactory
{
    public function createChinesePizza()
    {
        echo "开始制作中国pizza<br/>";
        $scp = new SaladChinesePizza();
        $scp->addWater();
        $scp->addFlour();
        $scp->addSeasoning();
    }

    public function createUSPizza()
    {
        echo "开始制作美国pizza<br/>";
        $sup = new SaladUSPizza();
        $sup->addWater();
        $sup->addFlour();
        $sup->addSeasoning();
    }

}